package se.webbzon.oschi01.gui;

import java.util.Enumeration;

import javax.swing.DefaultListModel;

public class SynchronizedListModel<T> extends DefaultListModel<T> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3871033311698088037L;

	@Override public synchronized void add(int index, T element) {
		super.add(index, element);
	}

	@Override public synchronized void addElement(T element) {
		super.addElement(element);
	}

	@Override public synchronized int capacity() {
		return super.capacity();
	}

	@Override public synchronized void clear() {
		super.clear();
	}

	@Override public synchronized boolean contains(Object elem) {
		return super.contains(elem);
	}

	@Override public synchronized void copyInto(Object[] anArray) {
		super.copyInto(anArray);
	}

	@Override public synchronized T elementAt(int index) {
		return super.elementAt(index);
	}

	@Override public synchronized Enumeration<T> elements() {
		return super.elements();
	}

	@Override public synchronized void ensureCapacity(int minCapacity) {
		super.ensureCapacity(minCapacity);
	}

	@Override public synchronized T firstElement() {
		return super.firstElement();
	}

	@Override public synchronized T get(int index) {
		return super.get(index);
	}

	@Override public synchronized T getElementAt(int index) {
		return super.getElementAt(index);
	}

	@Override public synchronized int getSize() {
		return super.getSize();
	}

	@Override public synchronized int indexOf(Object elem, int index) {
		return super.indexOf(elem, index);
	}

	@Override public synchronized int indexOf(Object elem) {
		return super.indexOf(elem);
	}

	@Override public synchronized void insertElementAt(T element, int index) {
		super.insertElementAt(element, index);
	}

	@Override public synchronized boolean isEmpty() {
		return super.isEmpty();
	}

	@Override public synchronized T lastElement() {
		return super.lastElement();
	}

	@Override public synchronized int lastIndexOf(Object elem, int index) {
		return super.lastIndexOf(elem, index);
	}

	@Override public synchronized int lastIndexOf(Object elem) {
		return super.lastIndexOf(elem);
	}

	@Override public synchronized T remove(int index) {
		return super.remove(index);
	}

	@Override public synchronized void removeAllElements() {
		super.removeAllElements();
	}

	@Override public synchronized boolean removeElement(Object obj) {
		return super.removeElement(obj);
	}

	@Override public synchronized void removeElementAt(int index) {
		super.removeElementAt(index);
	}

	@Override public synchronized void removeRange(int fromIndex, int toIndex) {
		super.removeRange(fromIndex, toIndex);
	}

	@Override public synchronized T set(int index, T element) {
		return super.set(index, element);
	}

	@Override public synchronized void setElementAt(T element, int index) {
		super.setElementAt(element, index);
	}

	@Override public synchronized void setSize(int newSize) {
		super.setSize(newSize);
	}

	@Override public synchronized int size() {
		return super.size();
	}

	@Override public synchronized Object[] toArray() {
		return super.toArray();
	}

	@Override public synchronized String toString() {
		return super.toString();
	}

	@Override public synchronized void trimToSize() {
		super.trimToSize();
	}

}
